/**
 * 编辑-网元类型管理js
 */
var vm = new Vue({
	el:'#dpLTE',
	data: {
		goodsOrderContact: {
			contactName: null,
			contactPhone: null,
			contactAddress: null,
			expressNum: null,
			expressChannel: null,
			expressName:null,
			expressStatus:null,
			expressStatusId:null,
			recId:null
	        },
	        options: [  
	                  { text: '未发货', code:'1' },  
	                  { text: '已发货', code:'2' }
	                ]  
	},
	methods : {
		 
		setForm: function() {
			$.SetForm({
				url: '../../goods/giftlist/select?_' + $.now(),
		    	param: vm.goodsOrderContact.recId,
		    	success: function(data) {
		    		vm.goodsOrderContact = data;
		    	}
			});
		},
		acceptClick: function() {
			if (!$('#form').Validform()) {
		        return false;
		    }
			
			if (vm.goodsOrderContact.expressStatusId=='2') {
				vm.goodsOrderContact.expressStatus='已发货';
			}else{
				vm.goodsOrderContact.expressStatus='未发货';
			}
			
		    $.ConfirmForm({
		    	url: '../../goods/giftlist/edit?_' + $.now(),
		    	param: vm.goodsOrderContact,
		    	success: function(data) {
		    		$.currentIframe().vm.load();
		    	}
		    });
		}
	},
	created : function() {
	 
	}
})
